package test.h0814;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main1 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int[] gardens = Arrays.stream(sc.nextLine().split(" ")).mapToInt(Integer::parseInt).toArray();
        int ans=0;
        //统计出现的次数
        Map<Integer,Integer> map=new HashMap<>();
        for (int i = 0; i < gardens.length; i++) {
            map.put(gardens[i],map.getOrDefault(gardens[i],0)+1);
        }
        for (Integer key : map.keySet()) {
            ans+=key+1;
        }
        System.out.println(ans);
    }
}
